
cc.Class({
    extends: cc.Component,

    properties: {
       CapCow:{
           default:[],
           type:[cc.SpriteFrame]
       },

    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        let capButton = cc.instantiate(this.captureButton);
        capButton.clickEvents.push({
            callback:this.captureCallback,
            customEventData:""
        });
    },

    start () {

    },

    captureCallback(){
        cc.log("捕获到牛");
    },

    // update (dt) {},
});
